# load kerndwd library
library(kerndwd)
# load data set
data(Haberman)
# the number of samples predictors
dim(Haberman$X)
# the number of samples for each class
sum(Haberman$y == -1) # survived
sum(Haberman$y == 1) # died
Run the code above in your browser using DataLab